home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / MiscKit1.7.1 / MiscKit / Headers / misckit / MiscBackWindow.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-09-29  |  1.7 KB  |  63 lines

  1. //
  2. //    MiscBackWindow.h -- Full-screen window for background or covering all
  3. //        Written by Dale Amon, copyright 1994 by Genesis Project, Ltd.
  4. //                Version 0.8.  All rights reserved.
  5. //
  6. //        This notice may not be removed from this source code.
  7. //
  8. //    This object is included in the MiscKit by permission from the author
  9. //    and its use is governed by the MiscKit license, found in the file
  10. //    "LICENSE.rtf" in the MiscKit distribution.  Please refer to that file
  11. //    for a list of all applicable permissions and restrictions.
  12. //    
  13.  
  14. /*=============================== BackWindow.m ==============================*/
  15. /* Class that impliments a full screen window with no title bars or other
  16.    ornamentation visible. It can be set to a user selectable tier and will
  17.    notify a delegate when it changes it's tier.
  18.  
  19. HISTORY
  20. 17-Feb-93  Dale Amon at GPL
  21.        Created. Based loosely on Backspace demo code.
  22. */
  23.  
  24. #define MISC_SAVERTIER         (50)
  25. #define MISC_BACKGROUNDTIER        (-100)
  26.  
  27. #define    MISC_BACKWIN_VERSION_ID    0.8
  28.  
  29. #ifdef MiscBackWindowCompat
  30. #define SAVERTIER         (50)
  31. #define BACKGROUNDTIER        (-100)
  32. #define    BACKWIN_VERSION_ID    0.8
  33. #define    BackWindow MiscBackWindow
  34. #endif MiscBackWindowCompat
  35.  
  36. @interface MiscBackWindow:Window
  37. {
  38.     int    currentTier;
  39. }
  40.  
  41. + initialize;
  42.  
  43. + getFrameRect:(NXRect *)fRect forContentRect:(const NXRect *)cRect
  44.      style:(int)aStyle;
  45. + getContentRect:(NXRect *)cRect forFrameRect:(const NXRect *)fRect
  46.        style:(int)aStyle;
  47. + (NXCoord)minFrameWidth:(const char *)aTitle forStyle:(int)aStyle
  48.           buttonMask:(int)aMask;
  49.  
  50. - init;
  51. - setDelegate: anObject;
  52.  
  53. - setWindowTier: (int) tier;
  54. - makeFrontdrop:sender;
  55. - makeBackdrop:sender;
  56. - windowDidChangeTierTo:(int)aTier;
  57.  
  58. - write:(NXTypedStream *)stream;
  59. - read:(NXTypedStream *)stream;
  60. - awake;
  61.  
  62. @end
  63.